<?php
ini_set('display_errors',1);
set_time_limit(0); 
include_once  dirname(dirname(dirname(__FILE__))).'/mgtv_init.php';
//从任务表取内容，调用C2执行

$db = nn_get_db(NL_DB_WRITE);
$db->open();
$sql="select * from nns_mgtvbk_c2_task where nns_org_id='fjyd' and nns_type='media' and nns_action='add' and nns_status=1 order by nns_create_time desc limit 30";


$info  = nl_db_get_all($sql, $db);


//print_r($info);
//die;
foreach ($info as $key => $value) {
	
	echo $value['nns_name'].PHP_EOL;
	content_task_model::vod($value['nns_id'],null,'fjyd');
}
